package com.itfreer.data.metadata.entity;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

/**
 * 定义字典类
 */
@DatabaseTable(tableName = "dictionary")
public class DictionaryEntity {

    /**
     * 外键，所属的字典
     */
    @DatabaseField(columnName = "dicName", useGetSet = true, width = 50)
    private String dicName;

    /**
     * id值，主键，唯一值
     * 系统应用中必需关联此值
     */
    @DatabaseField(columnName = "id", useGetSet = true, width = 50)
    private String id;

    /**
     * 代码值
     */
    @DatabaseField(columnName = "code", useGetSet = true, width = 50)
    private String code;

    /**
     * 显示名称
     */
    @DatabaseField(columnName = "display", useGetSet = true, width = 50)
    private String display;

    /**
     * 拼音简称
     */
    @DatabaseField(columnName = "abbreviation", useGetSet = true, width = 50)
    private String abbreviation;

    /**
     * 单位
     */
    @DatabaseField(columnName = "units", useGetSet = true, width = 50)
    private String units;

    /**
     * 排序值
     */
    @DatabaseField(columnName = "order", useGetSet = true, width = 10)
    private Integer order;

    /**
     * 是否有效
     */
    @DatabaseField(columnName = "valid", useGetSet = true, width = 2)
    private Boolean valid = true;

    /**
     * 备注
     */
    @DatabaseField(columnName = "info", useGetSet = true, width = 100)
    private String info;

    /**
     * 上级ID值
     */
    @DatabaseField(columnName = "pid", useGetSet = true, width = 50)
    private String pid;

    /**
     * 级别
     */
    @DatabaseField(columnName = "level", useGetSet = true, width = 10)
    private Integer level;

    /**
     * 是否为最后级别
     */
    @DatabaseField(columnName = "leaf", useGetSet = true, width = 2)
    private Boolean leaf;


    /**
     * id值，主键，唯一值
     * 系统应用中必需关联此值
     */
    public String getId() {
        return id;
    }

    /**
     * id值，主键，唯一值
     * 系统应用中必需关联此值
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * 代码值
     */
    public String getCode() {
        return code;
    }

    /**
     * 代码值
     */
    public void setCode(String code) {
        this.code = code;
    }

    /**
     * 显示名称
     */
    public String getDisplay() {
        return display;
    }

    /**
     * 显示名称
     */
    public void setDisplay(String display) {
        this.display = display;
    }

    /**
     * 拼音简称
     */
    public String getAbbreviation() {
        return abbreviation;
    }

    /**
     * 拼音简称
     */
    public void setAbbreviation(String abbreviation) {
        this.abbreviation = abbreviation;
    }

    /**
     * 排序值
     */
    public Integer getOrder() {
        return order;
    }

    /**
     * 排序值
     */
    public void setOrder(Integer order) {
        this.order = order;
    }

    /**
     * 是否有效
     */
    public Boolean getValid() {
        return valid;
    }

    /**
     * 是否有效
     */
    public void setValid(Boolean isValid) {
        this.valid = isValid;
    }

    /**
     * 备注
     */
    public String getInfo() {
        return info;
    }

    /**
     * 备注
     */
    public void setInfo(String info) {
        this.info = info;
    }

    /**
     * 上级ID值
     */
    public String getPid() {
        return pid;
    }

    /**
     * 上级ID值
     */
    public void setPid(String pid) {
        this.pid = pid;
    }

    /**
     * 级别
     */
    public Integer getLevel() {
        return level;
    }

    /**
     * 级别
     */
    public void setLevel(Integer level) {
        this.level = level;
    }

    /**
     * 是否为最后节点
     * @return
     */
    public Boolean getLeaf() {
        return leaf;
    }

    /**
     * 是否为最后节点
     */
    public void setLeaf(Boolean leaf) {
        this.leaf = leaf;
    }

    public String getUnits() {
        return units;
    }

    public void setUnits(String units) {
        this.units = units;
    }

    public String getDicName() {
        return dicName;
    }

    public void setDicName(String dicName) {
        this.dicName = dicName;
    }
}
